package cn.itsource.org.domain;

import cn.itsource.base.domain.BaseDomian;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Employee extends BaseDomian {
    public static final int STATE_NORMAL = 1 ; //"正常",
    public static final int STATE_LOCK = 2 ; //"锁定",
    public static final int STATE_LOGOUT = 3 ; //"注销"

    private String username;
    private String email;
    private String phone;
    private String salt;
    private String password;
    private Integer age;
    private Integer state = 1;
    private Long parentId;
    private Long managerId;
    private Long departmentId;
    private Long logininfoId;
    private Long shopId;

    private Employee manager;
    private Employee parent;

}
